package com.sscw.task.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.guaike.core.mybatis.plugins.BaseDAO;
import com.sscw.task.entity.DDetailsPineconePO;
import com.sscw.task.mapper.DDetailsPineconeExtMapper;
import com.sscw.task.mapper.DDetailsPineconeMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;

@Repository
@AllArgsConstructor
public class DDetailsPineconeDAO extends BaseDAO<DDetailsPineconeMapper, DDetailsPineconePO> {

    private final DDetailsPineconeExtMapper dDetailsPineconeExtMapper;

    public void deleteBeforeDay(Integer days){
        dDetailsPineconeExtMapper.deleteBeforeDay(days);
    }
}
